﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNhaSach;
using Entities;

namespace DataAccessLayer
{
    public class ChiTietBaoCaoTonDAL
    {
        DataService ds = new QLNhaSach.DataService();
        public int InsertChiTietBaoCaoTon(ChiTietBaoCaoTon ctbct)
        {
            int kq = 0;
            try
            {
                String sql = "INSERT INTO CHITIETBAOCAOTON(CTBCT_MABAOCAOTON,CTBCT_MASACH,CTBCT_TONDAU,CTBCT_PHATSINH,CTBCT_TONCUOI) VALUES(" + ctbct.MaBaoCaoTon + "," + ctbct.MaSach + "," + ctbct.TonDau + "," + ctbct.PhatSinh + "," + ctbct.TonCuoi + ")";
                kq = ds.ExcuteInsert(sql);
            }
            catch (Exception)
            {
                throw;
            }
            return kq;
        }
    }
}
